<?php
/**
 * @package		Joomla.Site
 * @subpackage	mod_custom
 * @copyright	Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

// no direct access
defined('_JEXEC') or die;
?>


<?php


$string =array();
$filePath='images';  
$dir = opendir(dirname(__FILE__)."/images");
while ($file = readdir($dir)) { 
   if (eregi("\.png",$file) || eregi("\.jpg",$file) || eregi("\.gif",$file) ) { 
   $string[] = $file;
   }
   //var_dump($file);
}

?>








<!-- JoomlaWorks "Simple Image Gallery" Plugin (v2.2) starts here -->

<ul id="sig4222b4c5ba" class="sig-container">
   
   <?php
   while (sizeof($string) != 0){
  $img = array_pop($string);
  

  
  
  //echo "<img src='".JURI::base()."images/photo/$img'  width='100px'/>"; ?>
  
  <li class="sig-block">
		<span class="sig-link-wrapper">
			<span class="sig-link-innerwrapper">
				<a href="<?php echo JURI::base()."images/photo/".$img ?>" class="sig-linkz" style="width:200px;height:160px;" data-lightbox="transitionIn:elastic;transitionOut:elastic;" target="_blank">
					<img class="sig-image" src="<?php echo JURI::base()."templates/hoangdiepspa/html/mod_custom/images/".$img ?>" title="CLICK_TO_ENLARGE 01.jpg" style="width:200px;height:160px;background-image:url(<?php echo JURI::base()."templates/hoangdiepspa/html/mod_custom/images/".$img ?>);" />
										
									</a>
			</span>
		</span>
	</li>
  
<?php }?>
		
		<li class="sig-clr"></li>
</ul>

<!-- JoomlaWorks "Simple Image Gallery" Plugin (v2.2) ends here -->












<div class="custom<?php echo $moduleclass_sfx ?>" <?php if ($params->get('backgroundimage')): ?> style="background-image:url(<?php echo $params->get('backgroundimage');?>)"<?php endif;?> >
	<?php echo $module->content;?>
</div>
